home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1993 July / Internet Tools.iso / RockRidge / mail / pp / pp-6.0 / examples / master / Makefile < prev    next >
Encoding:
Makefile  |  1991-11-06  |  2.1 KB  |  80 lines

  1. # Master Makefile.
  2. #
  3. ############################################################
  4. #
  5. # @(#) $Header$
  6. #
  7. # $Log$
  8. #
  9. ############################################################
  10. #
  11. # Definitions
  12. #
  13. ############################################################
  14.  
  15. FILES    = README-I README-J README-L aliases auth.channel auth.mta \
  16.     auth.qmgr auth.user ch.list ch.local ch.shell ch.uucp ch.x400in84 \
  17.     ch.x400in88 ch.x400out84 ch.x400out88 channel-I channel-J channel-L \
  18.     domain-I domain-J domain-L foo isoentities.add or or2rfc rfc2or \
  19.     tailor-I tailor-J tailor-L users
  20.  
  21.  
  22. ############################################################
  23. #
  24. # Building Rules
  25. #
  26. ############################################################
  27.  
  28. build: $(FILES)
  29.     @echo "All built"
  30.  
  31. clean:
  32.     rm -f README-? sed.cmds tailor-? tailor-?.rest
  33.  
  34. install:;
  35.  
  36. README-I: README-master Makefile sed.cmds
  37.     sed -e '/^%BEGIN(I)/d' -e '/^%END(I)/d' -e '/^%BEGIN/,/^%END/d' \
  38.         -f sed.cmds \
  39.         README-master | nroff > $@
  40.  
  41. README-J: README-master Makefile sed.cmds
  42.     sed -e '/^%BEGIN(J)/d' -e '/^%END(J)/d' -e '/^%BEGIN/,/^%END/d' \
  43.         -f sed.cmds \
  44.         README-master | nroff > $@
  45.  
  46. README-L: README-master Makefile sed.cmds
  47.     sed -e '/^%BEGIN(L)/d' -e '/^%END(L)/d' -e '/^%BEGIN/,/^%END/d' \
  48.         -f sed.cmds \
  49.         README-master | nroff > $@
  50.  
  51. sed.cmds: ../../Make.defs Makefile
  52.     echo "s:%TAILOR%:$(TAILOR):" > $@
  53.     echo "s:%TABLES%:$(TBLDIR):" >> $@
  54.     echo "s:%CMDDIR%:$(CMDDIR):" >> $@
  55.     echo "s:%TOOLS%:$(TOOLDIR):" >> $@
  56.  
  57. tailor-I: tailor-I.head tailor-I.rest
  58.     cat tailor-I.head tailor-I.rest > $@
  59. tailor-I.rest: tailor.common
  60.     sed -e '/^%BEGIN(I)/d' -e '/^%END(I)/d' -e '/^%BEGIN/,/^%END/d' \
  61.         $? > $@
  62.  
  63. tailor-J: tailor-J.head tailor-J.rest
  64.     cat tailor-J.head tailor-J.rest > $@
  65. tailor-J.rest:tailor.common
  66.     sed -e '/^%BEGIN(J)/d' -e '/^%END(J)/d' -e '/^%BEGIN/,/^%END/d' \
  67.         $? > $@
  68.  
  69. tailor-L: tailor-L.head tailor-L.rest
  70.     cat tailor-L.head tailor-L.rest > $@
  71. tailor-L.rest:tailor.common
  72.     sed -e '/^%BEGIN(L)/d' -e '/^%END(L)/d' -e '/^%BEGIN/,/^%END/d' \
  73.         $? > $@
  74.  
  75. ############################################################
  76. #
  77. # End of Building Rules
  78. #
  79. ############################################################
  80.